import config from "@/config"
import http from "@/utils/request"

export default {
	fund: {
		list: {
			url: `${config.API_URL}withdrawal/index`,
			name: "列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}withdrawal/update`,
			name: "审核",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
	},
	BalanceRecharge: {
		list: {
			url: `${config.API_URL}rechargeAmount/index`,
			name: "列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}rechargeAmount/update`,
			name: "修改",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
		create: {
			url: `${config.API_URL}rechargeAmount/create`,
			name: "添加",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
		delete: {
			url: `${config.API_URL}rechargeAmount/delete`,
			name: "删除",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
	},
	unionpay: {
		list: {
			url: `${config.API_URL}unionpay/index`,
			name: "列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
	},
}
